package com.objectdraw.server.data;

/**
 * Wrapper class for server's response to client's request.  
 * @author hgladden
 *
 */
public class ResponseData {
	private StringBuilder response = new StringBuilder();
	
	public ResponseData(){
		
	}
	/**
	 * Add information to the response.
	 * @param response
	 */
	public void addResponse(String response){
		this.response.append(response);
		this.response.append(" ");
	}

	/**
	 * Get the response information
	 * @return
	 */
	public String getResponse(){
		return response.toString();
	}
	
	/**
	 * calls toString on the response
	 */
	public String toString(){
		return response.toString();
	}
}
